package com.hypertech.core.ffmpeg.service.impl;

import com.hypertech.core.ffmpeg.mapper.JobMapper;
import com.hypertech.core.ffmpeg.model.Job;
import com.hypertech.core.ffmpeg.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobServiceImpl implements JobService {
    @Autowired
    private JobMapper jobMapper;

    @Override
    public List<Job> findAll() throws Exception {
        return jobMapper.findAll();
    }

    @Override
    public Integer add(Job job) throws Exception {
        return jobMapper.add(job);
    }
}
